plugin directory contents not included when using git
Reported by jgeiger | September 4th, 2008 @ 01:40 PM
If you create a new rails project, then clone the git repository for restful authentication into the vendor plugins directory, a git add will not add the contents of the directory since it seems to be it's own git repository.
mkdir authtest
cd authtest
rails .
git init
git add .
git commit -a -m "initial commit"
cd vendor/plugins
git clone git://github.com/technoweenie/restful-authentication.git restful_authentication
cd ../../
script/generate authenticated user sessions --include-activation --aasm
git add .
git status
Output of the status command ...snip...
# new file: vendor/plugins/restful_authentication
#
It will add the directory, but not the contents. When you the commit and push the repository elsewhere, it will not include the contents of the restful_authentication directory, which will lead to errors when trying to deploy the project.
I just deleted the .git directory in vendor/plugins/restful_authentication which allowed me to add the files, but there might (should) be a better way.
This may not be a bug with the plugin itself, but the installation instructions need to be updated to account for this issue.
Comments and changes to this ticket
-
flip (at mrflip) September 4th, 2008 @ 03:02 PM
- Tag changed from bug, install to install
This isn't a problem here:
The thing you want is
git submodule add
-
mrflip September 4th, 2008 @ 03:03 PM
- State changed from new to resolved
-
jgeiger September 4th, 2008 @ 03:12 PM
I would still suggest that it's added to the installation instructions just so it's clear to people (like me) who haven't run into this issue before.
-
mrflip September 4th, 2008 @ 03:52 PM
Sure. Would you please add a separate page on the wiki describing how to check out with git clone and pointing to the "git submodule" docs?
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Restful Authentication Generator
This widely-used plugin provides a foundation for securely managing user
authentication:
* Login / logout
* Secure password handling
* Account activation by validating email
* Account approval / disabling by admin
* Rudimentary hooks for authorization and access control.
http://github.com/technoweenie/restful-authentication/tree